<template>
  <view class="main">
    <view class="mainSettlementBox">
      <view class="mainSettlementBox_title"><text>订单创建成功</text></view>
      <view class="mainSettlementBox_count"><text>订单号:{{count}}</text></view>
      <view class="mainSettlementBox_price"><text>总额:{{totalPrice}}</text></view>
      <view class="mainSettlementBox_payment" @click="toOrderList">
        <button>去支付</button>
      </view>
    </view>
  </view>
</template>

<script>
  import {mapGetters} from 'vuex'
  export default {
    data() {
      return {
        count:''
      };
    },
    computed:{
      ...mapGetters('m_cart',['totalPrice'])
    },
    onLoad(option) {
      this.count = option.query
    },
    methods:{
      toOrderList(){
        uni.navigateTo({
          url: '/subpkg/orderList/orderList'
        });
      }
    }
  }
</script>

<style lang="scss">

</style>
